
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**服务站可以开店的区域信息**/
@Entity
@Table(name = "t_FuwuZhanArea")
public class FuwuZhanArea
{
    //PK
    private Long id;

    /**服务站id**/
    private Long fuwuzhanId;

    /**省**/
    private String province;

    /**市*/
    private String city;

    /**县**/
    private String town;

    /**县编码**/
    private String code;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getFuwuzhanId()
    {
        return fuwuzhanId;
    }

    public void setFuwuzhanId(Long fuwuzhanId)
    {
        this.fuwuzhanId = fuwuzhanId;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    @Override
    public String toString()
    {
        return "FuwuZhanArea [city=" + city + ", code=" + code + ", fuwuzhanId=" + fuwuzhanId + ", id=" + id
                + ", province=" + province + ", town=" + town + "]";
    }

}
